﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SinBiota.Model.Business.PersistenceServices.Implementation;
using SinBiota.Model.Business.PersistenceServices.Interfaces;

namespace Sinbiota.Web.Controllers
{
    public class SpecimenController : Controller
    {
        //
        // GET: /Specimen/
        private readonly IOccurrencePersistenceServices _occurrencePersistence;

        public SpecimenController(IOccurrencePersistenceServices occurrencePersistence)
        {
            _occurrencePersistence = occurrencePersistence;
        }

        public ActionResult Index()
        {
            return View("NotFound");
        }
        public ActionResult LegacyClassification(int id)
        {
            var specimen = _occurrencePersistence.FindSpecimenById(id);
            return specimen != null ? PartialView("LegacyClassification", specimen) : PartialView("NotFound");
        }
    }
}
